WARNING: This program has a bug which means we need to fix it!

RULE: Sprites need unique variable names. We use those names to assign actions to each sprite.

  • Click Run and watch the stage to see what happens.
  • Debug the program so that the sprite with the "toucan" image is named sam and the sprite with the "panther" image is named smokey.
  • Change the variable names in front of the .glide_to() commands so that each sprite goes to the right place.

To navigate the page using the TAB key, first press ESC to exit the code editor.

sprite = codesters.Sprite("toucan") sprite = codesters.Sprite("panther") sprite.glide_to(-150, -50) sprite.glide_to(150, -50)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)